<div id="body">
<?php foreach($news as $news_item): ?>
	<h2><?php echo $news_item['title'] ?></h2>
	<div id="main">
		<? echo $news_item['text'] ?>
	</div>
	<p><a href="http://darkstar.com/codeigniter/news/<? echo $news_item['slug'] ?>">View article</a></p>
	
<?php endforeach ?>
	<div id="debug" style="display:none">	
		<pre>Debug info:
<? 
	print_r($news);
?>
		</pre>
	</div>
</div>